import Vue from 'vue'
import Vuex from 'vuex'
import persistence from "vuex-uniapp-persistence";
import system from './modules/system';
import address from './modules/address';
import user from './modules/user';
Vue.use(Vuex)
const store = new Vuex.Store({
  //创库管理
  state:{
    user:"黑马",
  },
  mutations:{
    setUser(state,user){
      state.user = user
    }
  },
  actions:{},
  getters:{},
  modules:{
    address,
    system,
    user
  },
  //插件配置
  plugins: [persistence()],

})
export default store